/*
*
==============================================================================
*  Name        : 
*  Part of     : Omen Game Engine
*  Description : 
*  Version     : 1.0
*
*  Copyright (c) 2013 Lauri Kortevaara.
* 
==============================================================================
*/

#define OMEN_SOURCE 1

/// Omen Headers
#include "OmenRigidBody.h"
#include <OmenUtils.h>

/// STL Headers
#include <iostream>

using namespace Omen;

RigidBody::RigidBody() :
  m_mass( DEFAULT_MASS ),
  m_drag( DEFAULT_DRAG ),
  m_angularDrag( DEFAULT_ANGULAR_DRAG )
{
}

RigidBody::RigidBody( const RigidBody& other )
{
  m_mass = other.m_mass;
  m_drag = other.m_drag;
  m_angularDrag = other.m_angularDrag;
}

RigidBody::~RigidBody()
{
}

Omen::Float RigidBody::mass() const
{
    return m_mass;
}

void RigidBody::setMass( const Omen::Float& mass )
{
    m_mass = mass;
}

Omen::Float RigidBody::drag() const
{
    return m_drag;
}

void RigidBody::setDrag( const Omen::Float& drag )
{
    m_drag = drag;
}

Omen::Float RigidBody::angularDrag() const
{
    return m_angularDrag;
}

void RigidBody::setAngularDrag( const Omen::Float& drag )
{
    m_angularDrag = drag;
}

bool RigidBody::useGravity() const
{
    return m_bUseGravity;
}

void RigidBody::setUseGravity( bool bUseGravity ) 
{
    m_bUseGravity = bUseGravity;
}

Omen::Vector3d RigidBody::moveConstraints() const
{
    return m_moveConstraints;
}

void RigidBody::setMoveConstraints( const Omen::Vector3d& c )
{
    m_moveConstraints = c;
}

Omen::Vector3d RigidBody::rotationConstraints() const
{
    return m_rotationConstraints;
}

void RigidBody::setRotationConstraints( const Omen::Vector3d& c )
{
    m_rotationConstraints = c;
}


/// EOF